package ooday02.homework;
//Student类：继承Person、className、stuId，Student(参)、study()，重写sayHi()方法
public class Student extends Person {
    String className;//类名
    String stuId;//学号
    Student(){
    }
    Student(String name ,int age ,String address,String className,String stuId){
        super(name ,age,address);
        this.className=className;
        this.stuId=stuId;
    }
    void Student(){
        System.out.println(name+"要上班");
    }
    void sayHi() {
        System.out.println("大家好,我叫" + name + "今年" + age + "岁了,家住在" + address+"是"+className
        +"班学生,学号是"+stuId);
    }
}
